package org.luxor.commons.workflow.entity;

import java.util.Date;

/**
 * 流程实例-查询参数
 *
 * @author Mr.yan  @date 2021/10/16
 */
public class ProcessInstanceQuery {

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 分类
     */
    private String category;

    /**
     * 激活
     */
    private boolean active;

    /**
     * 流程ID
     */
    private String processInstanceId;

    /**
     * 流程实例名称(LIKE)
     */
    private String name;

    /**
     * 发起人
     */
    private String startedUserId;

    /**
     * 涉及人
     */
    private String involvedUserId;

    /**
     * 发起时间-开始范围
     */
    private Date startDate;

    /**
     * 发起时间-结束范围
     */
    private Date endDate;

    public ProcessInstanceQuery() {
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getStartedUserId() {
        return startedUserId;
    }

    public void setStartedUserId(String startedUserId) {
        this.startedUserId = startedUserId;
    }

    public String getInvolvedUserId() {
        return involvedUserId;
    }

    public void setInvolvedUserId(String involvedUserId) {
        this.involvedUserId = involvedUserId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "RuntimeQuery{" +
                "tenantId='" + tenantId + '\'' +
                ", category='" + category + '\'' +
                ", active=" + active +
                ", processInstanceId='" + processInstanceId + '\'' +
                ", name='" + name + '\'' +
                ", startedUserId='" + startedUserId + '\'' +
                ", involvedUserId='" + involvedUserId + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                '}';
    }
}
